{extend name="layout:base" /}
{block name="page_content"}
  <div class="row">
    <div class="col-xs-12">
      <h3 class="header smaller lighter blue">申报信息</h3>
      <div class="clearfix"></div>
      <table class="table  table-bordered table-hover">
        <tbody>
          <tr>
            <th>论文名称：</th>
            <td>{$apply.title}</td>
            <th>上传资料：</th>
            <td>
              <?php if(!empty($apply['attachment_path'])): ?>
                <a href="{$apply['attachment_path']}" target="_blank">下载资料</a>
              <?php endif; ?>
            </td>
          </tr>
          <tr>
            <th>姓名：</th>
            <td>{$apply.user_name}</td>
            <th>性别：</th>
            <td>
              {$apply.gender|get_field_text='gender',###}
            </td>
          </tr>
          <tr>
            <th>出生年月：</th>
            <td>{$apply.birthday}</td>
            <th>身份证号：</th>
            <td>
              {$apply.id_num}
            </td>
          </tr>
          <tr>
            <th>最高学历：</th>
            <td>{$apply.education|get_field_text='education',###}</td>
            <th>职称：</th>
            <td>
              {$apply.pro_title}
            </td>
          </tr>
          <tr>
            <th>邮箱：</th>
            <td>{$apply.email}</td>
            <th>手机号：</th>
            <td>
              {$apply.mobile}
            </td>
          </tr>
          <tr>
            <th>学校名称：</th>
            <td>{$apply.college_name}</td>
            <th>学校类型：</th>
            <td>
              {$apply.college_type}
            </td>
          </tr>
          <tr>
            <th>机构标识码：</th>
            <td>{$apply.college_no}</td>
            <th>二级院校：</th>
            <td>
              {$apply.college_depart}
            </td>
          </tr>
          <tr>
              <th>用户登录名：</th>
              <td><?php if(!empty($user)) { echo($user['name']); } ?></td>
              <th>注册手机：</th>
              <td>
                <?php if(!empty($user)) { echo($user['mobile']); } ?>
              </td>
            </tr>
          <tr>
            <th>提交时间：</th>
            <td>{$apply.create_time}</td>
            <th>更新时间：</th>
            <td>
              {$apply.update_time}
            </td>
          </tr>
        </tbody>
      </table>
    </div>
    <?php if(!empty($article)): ?>
      <div class="col-xs-12">
        <h3 class="header smaller lighter blue">申报项目</h3>
        <div class="clearfix"></div>
        <table class="table  table-bordered table-hover">
          <tbody>
            <tr>
              <th>项目名：</th>
              <td>
                <a href=":url('/column/read', ['id' => $article['id']])" target="_blank">
                  {$article.title}
                </a>
              </td>
            </tr>
            <tr>
              <th>项目摘要：</th>
              <td>{$article.description}</td>
            </tr>
            <tr>
              <th>创建时间：</th>
              <td>{$article.create_time}</td>
            </tr>
          </tbody>
        </table>
      </div>
    <?php endif; ?>
  </div>
{/block}